{include file="common/head_s"/} 
<div class="admin-main layui-anim layui-anim-upbit" ng-app="hd" ng-controller="ctrl">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>{$title}</legend>
    </fieldset>
    <form class="layui-form" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">开户行支行地址</label>
    <div class="layui-input-block">
      <input type="text" name="bankname" required  lay-verify="required" placeholder="请输入开户行与支行地址" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">银行卡账号</label>
    <div class="layui-input-block">
      <input type="text" name="bankno" required lay-verify="required" placeholder="请输入银行卡账号" autocomplete="off" class="layui-input">
    </div>
    <!-- <div class="layui-form-mid layui-word-aux">辅助文字</div> -->
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">持卡人</label>
    <div class="layui-input-block">
      <input type="text" name="user" required lay-verify="required" placeholder="请输入持卡人" autocomplete="off" class="layui-input">
    </div>
    <!-- <div class="layui-form-mid layui-word-aux">辅助文字</div> -->
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">银行预留手机号</label>
    <div class="layui-input-block">
      <input type="text" name="mobile" required lay-verify="required" placeholder="请输入银行预留手机号" autocomplete="off" class="layui-input">
    </div>
    
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <textarea name="note" placeholder="请输入备注" class="layui-textarea"></textarea>
    </div>
    <!-- <div class="layui-form-mid layui-word-aux">可空</div> -->
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-filter="addbtn" lay-submit>立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary" onclick="window.location='{:url('settle/index')}'">返回</button>
    </div>
  </div>
</form>
</div>
<script src="/static/plugins/layui/layui.js"></script> 
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  //监听提交
  form.on('submit(addbtn)', function(data){
        $.post("{:url('')}",data.field,function(res){ 
            // if(res.code===1){
            //     layer.msg(res.msg,{time:2000,icon:1},function(){  
            //         parent.location.reload();
            //         // window.location="{:url()}";
            //     });
            // }else{
            //     layer.msg(res.msg,{time:1000,icon:2}); 
            // }
        });
        return false;
    // layer.msg(JSON.stringify(data.field));
    // return false;
  });
});
</script>
</body>
</html>